package com.evildog.workspace.invest.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.invest.application.bo.BillBO;
import com.evildog.workspace.invest.application.bo.BillListBO;
import com.evildog.workspace.invest.application.bo.BillReportStatBO;
import com.evildog.workspace.invest.application.dto.BillDTO;
import com.evildog.workspace.invest.application.dto.BillListDTO;
import com.evildog.workspace.invest.application.entity.Bill;

import java.util.List;

/**
 * <p>
 * bill Service
 * </p>
 *
 * @author evildog
 * @since 2020-08-06
 */
public interface BillService extends IService<Bill> {

    /**
    * 获取List
    */
    List<BillListBO> getList(List<QueryConditionDTO> queryCondition, BillListDTO dto);

    /**
    * 获取详情
    */
    BillBO getDetailById(Long id);

    /**
    * 更新
    */
    boolean updateById(Long id, BillDTO param);

    /**
    * 保存
    */
    boolean save(BillDTO param);

    BillReportStatBO getTotalReport(int year, int month);

}
